<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <form action="/toValidator" method="post" th:object="${teacher}">
      姓名：<input type="text" th:field="*{name}"/>
      <span th:errors="*{name}" ></span>
    <br/>
      年龄：<input type="text" th:field="*{age}"/>
    <span th:errors="*{age}" ></span>
    <br/>
      邮箱：<input type="text" th:field="*{email}"/>
    <span th:errors="*{email}" ></span>
    <br/>
      密码：<input type="text" th:field="*{password}"/>
    <span th:errors="*{password}" ></span>
    <br/>
      出生日期：<input type="text" th:field="*{birthday}"/>
    <span th:errors="*{birthday}" ></span>
    <br/>
      <input type="submit" value="提交"/>
  </form>
</body>
</html>